#include "string.h"
using namespace cp;

void Test()
{
	string s("hello cpp");
	std::cout << s.c_str() << std::endl;

	string::iterator it = s.begin();
	while (it != s.end())
	{
		std::cout << *it << " ";
		++it;
	}
	std::cout << std::endl;

	size_t ret = s.size();
	std::cout << ret << std::endl;

	for (auto c : s)
	{
		std::cout << c << " ";
	}
	std::cout << std::endl;
}

int main()
{
	Test();
	return 0;
}